/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hydms.students.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.hydms.dormitory.entity.DmsDormitory;
import com.thinkgem.jeesite.modules.hydms.students.dao.DmsStudentsDao;
import com.thinkgem.jeesite.modules.hydms.students.entity.DmsStudents;

/**
 * 学生信息Service
 * @author 孟朋朋
 * @version 2017-04-01
 */
@Service
@Transactional(readOnly = true)
public class DmsStudentsService extends CrudService<DmsStudentsDao, DmsStudents> {
    @Autowired
	private DmsStudentsDao dmsStudentsDao ;
	public DmsStudents get(String id) {
		return super.get(id);
	}
	
	public List<DmsStudents> findList(DmsStudents dmsStudents) {
		return super.findList(dmsStudents);
	}
	
	public Page<DmsStudents> findPage(Page<DmsStudents> page, DmsStudents dmsStudents) {
		return super.findPage(page, dmsStudents);
	}
	public Page<DmsStudents> findPages(Page<DmsStudents> page, DmsStudents dmsStudents) {
		return super.findPages(page, dmsStudents);
	}
	@Transactional(readOnly = false)
	public void save(DmsStudents dmsStudents) {
		super.save(dmsStudents);
	}
	
	@Transactional(readOnly = false)
	public void delete(DmsStudents dmsStudents) {
		super.delete(dmsStudents);
	}
	@Transactional(readOnly = false)
	public boolean updateDormitory(DmsStudents dmsStudents) {
		// TODO Auto-generated method stub
		return dmsStudentsDao.updateDormitory(dmsStudents);
	}
	@Transactional(readOnly = false)
	public boolean updateRoomBed(DmsDormitory dmsDormitory) {
		// TODO Auto-generated method stub
		return dmsStudentsDao.updateRoomBed(dmsDormitory);
	}
	@Transactional(readOnly = false)
	public List<DmsStudents> findAList(DmsStudents student) {
		// TODO Auto-generated method stub
		return dmsStudentsDao.findAList(student);
	}

	
	
}